libMystr.a:test.o
	@ar -rc $@ $^
test.o:test.c
	@gcc -c $<

.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mylib
	cp -f *.h lib/include
	cp -f *.a lib/mylib
	tar czf lib.tgz lib

.PhONY:clean
clean:
	@rm -rf *.o *.a lib lib.tgz

